package me.goldze.mvvmhabit.http.download;

import android.os.Parcel;
import android.os.Parcelable;
import java.io.Serializable;

public class DownLoadStateBean implements Serializable, Parcelable {
    public static final Parcelable.Creator<DownLoadStateBean> CREATOR = new Parcelable.Creator<DownLoadStateBean>() {
        /* class me.goldze.mvvmhabit.http.download.DownLoadStateBean.AnonymousClass1 */

        @Override // android.os.Parcelable.Creator
        public DownLoadStateBean createFromParcel(Parcel source) {
            return new DownLoadStateBean(source);
        }

        @Override // android.os.Parcelable.Creator
        public DownLoadStateBean[] newArray(int size) {
            return new DownLoadStateBean[size];
        }
    };
    long bytesLoaded;
    String tag;
    long total;

    public DownLoadStateBean(long total2, long bytesLoaded2) {
        this.total = total2;
        this.bytesLoaded = bytesLoaded2;
    }

    public DownLoadStateBean(long total2, long bytesLoaded2, String tag2) {
        this.total = total2;
        this.bytesLoaded = bytesLoaded2;
        this.tag = tag2;
    }

    public long getTotal() {
        return this.total;
    }

    public void setTotal(long total2) {
        this.total = total2;
    }

    public long getBytesLoaded() {
        return this.bytesLoaded;
    }

    public void setBytesLoaded(long bytesLoaded2) {
        this.bytesLoaded = bytesLoaded2;
    }

    public String getTag() {
        return this.tag;
    }

    public void setTag(String tag2) {
        this.tag = tag2;
    }

    public int describeContents() {
        return 0;
    }

    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.total);
        dest.writeLong(this.bytesLoaded);
        dest.writeString(this.tag);
    }

    protected DownLoadStateBean(Parcel in) {
        this.total = in.readLong();
        this.bytesLoaded = in.readLong();
        this.tag = in.readString();
    }
}
